package com.onetech.adrewards.free.dialogs;

import android.content.Context;
import android.text.Html;
import android.widget.TextView;

import com.google.analytics.tracking.android.Fields;
import com.google.analytics.tracking.android.MapBuilder;
import com.google.analytics.tracking.android.Tracker;
import com.onetech.adrewards.free.R;
import com.zuzu.dialogs.BaseDialogNoTitleBar;


public class InfoDialog extends BaseDialogNoTitleBar {
	
	
	private Tracker mTracker;
	private Context mContext=null;
	public InfoDialog(Context context, String title,String message) {
		super(context, context.getString(R.string.error_message_title), TYPE_NO_BUTTON, R.layout.dialog_info_layout);
		//setIconTitle(R.drawable.ic_warning);	
		mContext=context;
		try {
			
			((TextView) findViewById(R.id.tvContent)).setText(Html.fromHtml(message));
			
		} catch (Exception e) {
			return;
		}
	}
	@Override
    public void onStart() {
        super.onStart();
        try {
            mTracker.set(Fields.SCREEN_NAME, mContext.getString(R.string.InfoDialog));            
            mTracker.send(MapBuilder.createAppView().build());            
		} catch (Exception e) {
		}
    }
}
